package com.alibaba.citrus.ots.platform.enhance.api.scitem.unit;

import com.alibaba.citrus.ots.platform.enhance.dto.api.request.CreateScItemUnitRequest;
import com.alibaba.citrus.ots.platform.enhance.dto.api.request.EditScItemUnitRequest;
import com.alibaba.citrus.ots.platform.enhance.dto.api.request.IdQueryRequest;
import com.alibaba.citrus.ots.platform.enhance.dto.api.request.QueryScItemUnitRequest;
import com.alibaba.citrus.ots.platform.enhance.dto.api.response.ScItemUnitResponse;
import com.alibaba.citrus.ots.platform.enhance.sdo.ScItemUnitSDO;
import com.alibaba.cz.base.tool.page.PageResult;
import com.alibaba.cz.base.tool.result.Result;

import java.util.List;

/**
 * @author zls
 * @description: 单位库接口
 * @date 2021/9/10 15:30
 */
public interface ScItemUnitQueryService {

    /**
     * 根据id查询单位库
     * @param request
     * @return
     */
    Result<ScItemUnitResponse> getScItemUnit(IdQueryRequest request);

    /**
     * 分页查询单位库
     * @param request
     * @return
     */
    Result<PageResult<List<ScItemUnitSDO>>> pageQueryScItemUnitList(QueryScItemUnitRequest request);
}
